package net.tv90.bfmccore.util;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class KillLog {
    String country;
    String weapon;
    String world;
    double killerX;
    double killerY;
    double killerZ;
    double killedX;
    double killedY;
    double killedZ;
    double killerHealth;
    LocalDateTime time;
    String killerName;
    String killedName;
    boolean isHeadshot;
    double distance;

    public String toCsv() {
        return country + "," + weapon + "," + world + "," +
                killerX + "," + killerY + "," + killerZ + "," +
                killedX + "," + killedY + "," + killedZ + "," +
                killerHealth + "," + time + "," + killerName + "," +
                killedName + "," + isHeadshot + "," + distance;
    }
}
